package com.hamizhong.iflowers.web.action;

import java.util.ArrayList;
import java.util.List;

import com.hamizhong.iflowers.service.ICityService;
import com.hamizhong.iflowers.service.IGoodsService;
import com.hamizhong.iflowers.service.IOrdersService;
import com.hamizhong.iflowers.service.IProvinceService;
import com.hamizhong.iflowers.service.IUserService;
import com.hamizhong.iflowers.utils.MyConstants;
import com.hamizhong.iflowers.web.base.MyBaseAction;
import com.hamizhong.iflowers.web.dto.IOPResultDto;
import com.hamizhong.iflowers.web.vo.IObjectVO;
import com.hamizhong.iflowers.web.vo.OrdersVO;
import com.hamizhong.iflowers.web.vo.UserVO;

public class MyOrdersAction extends MyBaseAction {
	private IOrdersService iOrdersService = null;
	private IProvinceService iProvinceService = null;
	private ICityService iCityService = null;
	private IGoodsService iGoodsService = null;
	private IUserService iUserService = null;
	
	public IOrdersService getiOrdersService() {
		return iOrdersService;
	}
	public void setiOrdersService(IOrdersService iOrdersService) {
		this.iOrdersService = iOrdersService;
	}
	public IProvinceService getiProvinceService() {
		return iProvinceService;
	}
	public void setiProvinceService(IProvinceService iProvinceService) {
		this.iProvinceService = iProvinceService;
	}
	public ICityService getiCityService() {
		return iCityService;
	}
	public void setiCityService(ICityService iCityService) {
		this.iCityService = iCityService;
	}
	public IGoodsService getiGoodsService() {
		return iGoodsService;
	}
	public void setiGoodsService(IGoodsService iGoodsService) {
		this.iGoodsService = iGoodsService;
	}
	public IUserService getiUserService() {
		return iUserService;
	}
	public void setiUserService(IUserService iUserService) {
		this.iUserService = iUserService;
	}

	@Override
	protected String doRequest() {
/*		UserVO userVO = (UserVO) getSSN().getAttribute(MyConstants.IFLOWERS_LOGIN_USER_VO);
		if(userVO == null) {
			return ERROR;
		}
		IOPResultDto<IObjectVO> dto = iOrdersService.findByUserId(userVO.getUserId());
		List<OrdersVO> ordersVOList = new ArrayList<OrdersVO>();
		if(dto.isSuccess()) {
			ordersVOList = dto.getFirstResult().getOrdersVOList();
			getRQ().setAttribute("ordersVOList", ordersVOList);
			return SUCCESS;
		}else {
			return ERROR;
		}*/
		return SUCCESS;
	}

}
